home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / checkbox / plugins / error_prompt.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  906 b   |  18 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from checkbox.plugin import Plugin
  5.  
  6. class ErrorPrompt(Plugin):
  7.     
  8.     def register(self, manager):
  9.         super(ErrorPrompt, self).register(manager)
  10.         self._manager.reactor.call_on('prompt-error', self.prompt_error)
  11.  
  12.     
  13.     def prompt_error(self, interface, title, text):
  14.         interface.show_error(title, text)
  15.  
  16.  
  17. factory = ErrorPrompt
  18.